package com.rc.saas.mini.vo.order;

import com.rc.saas.mini.common.base.BaseVo;
import com.rc.saas.mini.model.order.OrderDiscountRecord;

/**
 * @author wangzhengwei
 * @create 2021/5/8
 */
public class OrderDiscountVo extends BaseVo {
    private String discountName;   //优惠标题

    private String discountType;   //优惠类型类型

    private String discountAmount;  //优惠金额


    public OrderDiscountVo() {
    }

    public OrderDiscountVo(OrderDiscountRecord orderDiscount) {
        this.discountName = orderDiscount.getDiscountName();
        this.discountType = orderDiscount.getDiscountType();
        this.discountAmount = "-" + orderDiscount.getDiscountAmount();

        this.setTenantCode(orderDiscount.getTenantCode());
        this.setTenantOperatorCode(orderDiscount.getTenantOperatorCode());
    }

    public String getDiscountName() {
        return discountName;
    }

    public void setDiscountName(String discountName) {
        this.discountName = discountName;
    }

    public String getDiscountType() {
        return discountType;
    }

    public void setDiscountType(String discountType) {
        this.discountType = discountType;
    }

    public String getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(String discountAmount) {
        this.discountAmount = discountAmount;
    }
}
